package com.ojoin.trade.bpm.web.domain;

public class ProcessInstanceVO {

	private String id;
	
	private String processInstanceId;
	
	private String processDefinitionId;
	
	private String activityId;
	
	private int suspensionState;
	
	private boolean isSuspended;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getProcessInstanceId() {
		return processInstanceId;
	}
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	public String getProcessDefinitionId() {
		return processDefinitionId;
	}
	public void setProcessDefinitionId(String processDefinitionId) {
		this.processDefinitionId = processDefinitionId;
	}
	public String getActivityId() {
		return activityId;
	}
	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}
	public boolean isSuspended() {
		return this.getSuspensionState()==2;
	}
	public void setSuspended(boolean isSuspended) {
		this.isSuspended = isSuspended;
	}
	
	public int getSuspensionState() {
		return suspensionState;
	}
	
	public void setSuspensionState(int suspensionState) {
		this.suspensionState = suspensionState;
	}
}
